import request from '@/utils/request'

/*
*
* 获取取件或者派件分页的接口
*  */
export const fetchUpOrDispatchAPI = (data) => {
  return request({
    url: '/manager/pickup-dispatch-task-manager/page',
    method: 'POST',
    data
  })
}

/*
* 分配快递员的接口
*  */
export const distributionDeliverymanAPI = ({ courierId, ids }) => {
  return request({
    url: `/manager/pickup-dispatch-task-manager/${courierId}`,
    method: 'PUT',
    data: ids
  })
}
